home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 18
/
Silicon_Graphics_hot mix 18.iso
/
.bin
/
ccinst
< prev
next >
Wrap
Text File
|
1998-02-28
|
851b
|
30 lines
#!/bin/csh
if (-w /usr/tmp) then
setenv TMPFILEDIR "/usr/tmp"
else if (-w /tmp) then
setenv TMPFILEDIR "/tmp"
else if (-w $HOME) then
setenv TMPFILEDIR $HOME
endif
if (-e $TMPFILEDIR/hm18_install.$USER) then
rm -rf $TMPFILEDIR/hm18_install.$USER
endif
mkdir $TMPFILEDIR/hm18_install.$USER
mkdir $TMPFILEDIR/hm18_install.$USER/$$
cd $TMPFILEDIR/hm18_install.$USER/$$
tar xf $argv
if (-e $TMPFILEDIR/hm18_install.$USER/$$/cc.inst) then
/usr/sbin/SoftwareManager -F $TMPFILEDIR/hm18_install.$USER/$$/cc.inst
else
/usr/sbin/SoftwareManager -f .
endif
set remove=`$HOTMIXDIR/.bin/xconfirm -B "Yes" -b "No" -icon question -t "The inst images currently reside in $TMPFILEDIR/hm18_install.$USER/$$. Do you want to remove them?"`
if ($remove == 'Yes') then
cd $TMPFILEDIR
/bin/rm -rf $TMPFILEDIR/hm18_install.$USER
endif